<docs>
  ## confirm 提示

</docs>
<template>
  <transition name="userLogin">
    <div class="confirm" v-show="visible">
      <div class="container-wrap">
        <div class="container">
          <p class="user_login">请登录及时与企业取得联系</p>
          <button class="user_btn" @click="login">请您登陆</button>
        </div>
      </div>
    </div>
  </transition>
</template>
<script>
export default {
  name: "userLogin",
  data() {
    return {
      visible: false
    };
  },
  methods: {
    login() {
      this.$emit("login");
    }
  }
};
</script>
<style lang="scss" scoped>
@import "~common/scss/var.scss";
.confirm {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1003;
  background: $color-cover-bg;
  &.confirm-enter-active {
    animation: cover-fadein 0.3s;
    .container {
      animation: content-zoom 0.3s;
    }
  }
  &.confirm-leave-to {
    opacity: 0;
  }
  &.confirm-leave-active {
    transition: all ease 0.3s;
  }
}
.container-wrap {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: $width-user * 2;
  height: $height-label * 40;
}
.container {
  overflow: hidden;
  border-radius: $radius-base;
  background-color: $color-white;
  position: relative;
  text-align: center;
  line-height: 1.5;
  height: 100%;
  background: url("~common/images/userlogin.png") center center no-repeat;
  background-size: 100%;
  .user_login {
    width: $width * 30;
    margin: $margin-user;
    color: #fdfaf9;
    font-size: $font-size-user * 2;
    font-weight: 700;
  }
  .user_btn {
    width: $width-box * 2;
    height: $height-user * 2;
    line-height: $height-user * 2;
    text-align: center;
    margin-top: $margin-top * 3;
    background: url("~common/images/login_user.png") center center no-repeat;
    background-size: 100%;
    border: none;
    color: #ffffff;
    font-size: $font-size-sure * 2;
  }
}
</style>
